<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=7">
    <title>发送邮件_{$site.site_title}</title>
    <meta name="keywords" content="{$site.site_keywords}">
    <meta name="description" content="{$site.site_desc}">
    <link href="__STATIC__/css/style.css" rel="stylesheet" type="text/css" />
    <script src="__STATIC__/js/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script src="__STATIC__/js/common.js" type="text/javascript"></script>

</head>
<body style="background:#f5f5f5; padding-top:100px;">
<div class="czmm">
    <div class="czmm_logo"><img src="__STATIC__/images/logo1.png" alt="全球零号"></div>
    <div class="czmm_c">找回密码</div>
    <div class="czmm_b">请输入注册的帐号：</div>
    <form action="{:U('passport/forgot')}" id="send-form">
        <table border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td><input type="text" name="mobile" value="" id="mobile" class="clogin" placeholder="请输入注册手机号" style="padding-left:10px;"/></td>
            </tr>
            <tr>
                <td><input type="text" name="email" value="" id="email" class="clogin" placeholder="请输入注册邮箱" style="padding-left:10px;"/></td>
            </tr>
            <tr>
                <td><input type="button" id="button" value="发送邮件" class="anniu3"/></td>
            </tr>
        </table>
    </form>
</div>
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
<script>
    $(function(){
        $('#button').click(function(){
            if(!verify('#mobile', '请输入注册手机号')) return false
            if(!paramsformat($('#mobile').val(), 'mobile'))
            {
                layer.tips('手机号码格式错误', '#mobile', {tips:[2, '#3595CC']});
                $('#mobile').focus();
                return false;
            }
            if(!verify('#email', '请输入注册邮箱')) return false
            if(!paramsformat($('#email').val(), 'email'))
            {
                layer.tips('邮箱格式错误', '#email', {tips:[2, '#3595CC']});
                $('#email').focus();
                return false;
            }
            layer.msg('邮件发送中……');
            $.ajax({
                data: $('#send-form').serialize(),
                url : $('#send-form').attr('action'),
                dataType :'json',
                type:'post',
                success: function(res){
                    layer.msg(res.msg);
                }
            })

        })
    })
</script>
</body>
</html>